import {createStore} from 'redux';
import reducer from './index';
export default function configureStore(initialState) {
    const store = createStore(reducer, initialState);
    if (module.hot) {
        // Enable Webpack hot module replacement for reducers
        module.hot.accept('./', () => {
            const nextRootReducer = require('./index');
            store.replaceReducer(nextRootReducer);
        });
    }
    return store;
}